package chapter04.example11;
interface Animal{
    int ID = 1;
    String NAME = "牧羊犬";
    void shout();
    static int getId(){
        return Animal.ID;
    }
    public void info();

    }
    interface Action{
        public void eat();
    }
    class Dog implements Animal,Action{
        public void eat(){
            System.out.println("喜欢吃骨头");
        }
        public void shout(){
            System.out.println("汪汪汪...");
        }
        public void  info(){
            System.out.println("名称:"+NAME);
        }
    }

public class example11 {
    public static void main(String[] args) {
        System.out.println("编号"+Animal.getId());
        Dog dog = new Dog();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
